package ZhuHongf;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class SuiJI00 {
    public static void main(String[] args) {
        long kaishi = System.currentTimeMillis();
        List list = new ArrayList();
        for (int i = 0; i < 10000; i++) {
            list.add(i);
        }
        for (int i = 0; i < 100; i++) {
           list.remove((int) (Math.random() * 100));
        }
        long jieshu = System.currentTimeMillis();
        System.out.println(jieshu - kaishi);
        System.out.println(">>>>>>>>>>>>>");
        long kaishi1 = System.currentTimeMillis();
        List list1 = new LinkedList();
        for (int i = 0; i < 10000; i++) {
            list1.add(i);
        }
        for (int i = 0; i < 100; i++) {
            list1.remove((int) (Math.random() * 100));
        }
        long jieshu1= System.currentTimeMillis();
        System.out.println(jieshu1 - kaishi1);

    }

}


